/* 
 * File:   FileNode.h
 * Author: KENNJI
 *
 * Created on March 22, 2013, 4:48 PM
 */
#ifndef FILENODE_H
#define	FILENODE_H

#include "ZipNode.h"

/**
 * Class that is a ZipNode
 */
class FileNode : public ZipNode
{
public:

    /**
     * Instantiate a Recursive node
     * @param name The name of current node
     */
    FileNode(const char* fileName) : ZipNode(fileName)
    {
	this->currentBranches_ = 0;
	this->branchCounter_ = 0;
    }

    ~FileNode()
    {
    }

    /**
     * Check if this node is an instance of DirectoryNode or FileNode
     * @return true if is an instance of FileNode, other case false
     */
    bool isLeaf()const
    {
	return true;
    }
};

#endif	/* FILENODE_H */

